package com.t286.ten;

import java.lang.reflect.Field;
import java.lang.reflect.Modifier;

public class Two {

	public static void main(String[] args) throws Exception {
		
		 Class c=Class.forName("java.lang.Integer");
		 
		 Field[] f=c.getDeclaredFields();
		 /*System.out.println(c.getName());
		 System.out.println(c.getSimpleName());*/
		 StringBuffer sb=new StringBuffer();
		 sb.append(Modifier.toString(c.getModifiers())+" class"+c.getSimpleName()+"{"+"\n");
		 for(Field field:f){
			 sb.append(Modifier.toString(field.getModifiers())+" ");
//			 System.out.println(field.getType());
			 Class type=field.getType();
//			 System.out.println(type.getName());
			 sb.append(type+" ");
//			 int mo=field.getModifiers();
//			 System.out.println(Modifier.toString(field.getModifiers()));
//			 System.out.println(field.getModifiers());
//			 System.out.println(field.getName());
			 sb.append(field.getName()+"\n");
			 
		 }
		 sb.append("}");
		System.out.println(sb);
	}

}
